|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.vtp.framework.interactions.core.support.Widget
org.eclipse.vtp.framework.interactions.voice.vxml.Variable
public class Variable
The Variable class represents the <var> VXML element.
Variables hold temporary values during the processing of a VXML document.
When declared, a variable can optionally be set to an initial value. Some
platforms offer predefined variables that do not need declared with this
element.
| Field Summary | |
|---|---|
protected java.lang.String |
initialValue
The initial value of this variable |
| Constructor Summary | |
|---|---|
Variable(java.lang.String name)
Creates a new instance of Variable with the specified name
and no initial value. |
|
Variable(java.lang.String name,
java.lang.String initialValue)
Creates a new instance of Variable with the specified name
and initial value. |
|
| Method Summary | |
|---|---|
java.lang.String |
getInitialValue()
Returns the initial value of this variable. |
java.lang.String |
getName()
Returns the name of this variable. |
void |
setInitialValue(java.lang.String initialValue)
Sets the initial value of the variable. |
void |
setName(java.lang.String name)
Sets the name of this variable. |
protected void |
writeAttributes(org.xml.sax.helpers.AttributesImpl attributes)
Write the attribute members of this variable to the supplied set. |
void |
writeWidget(org.xml.sax.ContentHandler outputHandler)
Writes the content of this widget to an XML content handler. |
| Methods inherited from class org.eclipse.vtp.framework.interactions.core.support.Widget |
|---|
toString, writeAttribute, writeChildren, writeChildren, writeWidget, writeWidget |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String initialValue
| Constructor Detail |
|---|
public Variable(java.lang.String name)
throws java.lang.IllegalArgumentException,
java.lang.NullPointerException
Variable with the specified name
and no initial value. Throws an IllegalArgumentException if the name
argument is null or is an empty string.
name - The name of this variable.
java.lang.IllegalArgumentException - If the supplied name is empty.
java.lang.NullPointerException - If the supplied name is null.
public Variable(java.lang.String name,
java.lang.String initialValue)
throws java.lang.IllegalArgumentException,
java.lang.NullPointerException
Variable with the specified name
and initial value. Throws an IllegalArgumentException if the name argument
is null or is an empty string.
name - The name of this variable.initialValue - The initial value of this variable.
java.lang.IllegalArgumentException - If the supplied name is empty.
java.lang.NullPointerException - If the supplied name is null.| Method Detail |
|---|
public java.lang.String getName()
public java.lang.String getInitialValue()
public void setName(java.lang.String name)
throws java.lang.IllegalArgumentException,
java.lang.NullPointerException
name - The name of this variable.
java.lang.IllegalArgumentException - If the supplied name is empty.
java.lang.NullPointerException - If the supplied name is null.public void setInitialValue(java.lang.String initialValue)
initialValue - The new initial value of the variable
public void writeWidget(org.xml.sax.ContentHandler outputHandler)
throws java.lang.NullPointerException,
org.xml.sax.SAXException
Widget
writeWidget in class WidgetoutputHandler - The handler to write this widget to.
java.lang.NullPointerException - If the supplied content handler is
null.
org.xml.sax.SAXException - If the writing of this widget fails.protected void writeAttributes(org.xml.sax.helpers.AttributesImpl attributes)
attributes - The attribute set to write to.
java.lang.NullPointerException - If the supplied attribute set is
null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||